<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<script src="../vue.js"></script>

<body>

  捕获是从外到内进行捕获
  <div id="app">
    <div @click.capture="doParent">
      <button @click="doThis">事件捕获</button>
    </div>
  </div>
  <script>
    const vm = new Vue({
      el: "#app",
      methods: {
        doParent() {
          console.log("I am parent click event.");

        },
        doThis() {
          console.log("I am Child click event.");
        }
      }
    })
  </script>
</body>

</html>